import request from '@/utils/request.js'

export default {
    searchBorroers(pageNum, pageSize, keyWords) {
        return request({
            url: `/admin/core/borrower/search/${pageNum}/${pageSize}`,
            method: 'post',
            params: keyWords,
        })
    },

    show(id) {
        return request({
            url: `/admin/core/borrower/show/${id}`,
            method: 'get',
        })
    },

    approval(approvalInfo) {
        return request({
            url: `/admin/core/borrower/approval`,
            method: 'post',
            data: approvalInfo
        })
    }
}
